package edu.gtcfla.km.appmodules.vo;

import java.io.Serializable;

import org.vsg.biz.BusinessEntityFactory;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import edu.gtcfla.km.Category;

@JsonIgnoreProperties(value = {"category"})
public class CategoryFormVO implements Serializable {
	
	private Category category;
	
	private String parentId;
	
	private static BusinessEntityFactory entityFactory = BusinessEntityFactory.getInstance();

	public CategoryFormVO(Category category) {
		super();
		this.category = category;
	}
	
	public CategoryFormVO() {
		category = entityFactory.create( Category.class );
	}

	public String getId() {
		return category.getId();
	}

	public void setId(String newId) {
		category.setId(newId);
	}

	public String getName() {
		return category.getName();
	}



	public void setName(String name) {
		category.setName(name);
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}
	
	

	
	
}
